package cn.chrilwe.pigpig.user.common;
/**
 * 
 * @author chrilwe
 * 2020-8-17
 */
public enum ResponseEnum {
	SUCCESS("SUCCESS",200),
	USERNAME_NOTEXISTS("用户不存在",9001400),
	PARAM_ERR("请求参数异常",9001501),
	FAIL("请求失败",9001500),
	UNKNOW_ERR("未知异常",9001502),
	ROLE_NOT_EXISTS("该角色不存在",9001503),
	AUTHORITY_NO_EXISTS("该权限不存在",9001504),
	ROLE_EXISTS("该角色已经存在",9001505);
	
	private String name;
	
	private int code;
	private ResponseEnum(String name, int code) {
		this.name = name;
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	
}
